import Lang from '@/common/js/lang.js'
export default {
	methods: {
		/**
		 * 撤销退款申请
		 * @param {Object} order_goods_id
		 * @param {Object} callback
		 */
		cancleRefund(order_goods_id, callback) {
			uni.showModal({
				content: Lang.lang('condition.cancelReturn'),
				cancelText: Lang.lang('condition.notRevoked'),
        confirmText: Lang.lang('condition.confirm'),
				cancelColor: '#898989',
        confirmColor: '#898989',
				success: res => {
					if (res.confirm) {
						this.$api.sendRequest({
							url: '/api/orderrefund/cancel',
							data: {
								order_goods_id
							},
							success: res => {
								typeof callback == 'function' && callback(res);
							}
						})
					}
				}
			})
		},

	}
}
